/*
 * @Author: cpu_code
 * @Date: 2020-05-29 10:49:29
 * @LastEditTime: 2020-05-29 10:50:59
 * @FilePath: \ccourse\2_type\3_decimal.cpp
 * @Gitee: https://gitee.com/cpu_code
 * @CSDN: https://blog.csdn.net/qq_44226094
 */ 

#include <iostream>

int main()
{
    using namespace std;
    
    int chest = 42;     // decimal integer literal
    int waist = 0x42;   // hexadecimal integer literal
    int inseam = 042;   // octal integer literal

    cout << "Monsieur cuts a striking figure!\n";
    
    cout << "chest == " << chest << " (42 in decimal)\n";
    cout << "waist == " << waist << " (0x42 in hex)\n";
    cout << "inseam == " << inseam << " (042 in octal)\n";

	// cin.get();

    return 0; 
}

/*
Monsieur cuts a striking figure!
chest == 42 (42 in decimal)
waist == 66 (0x42 in hex)
inseam == 34 (042 in octal)
*/